package test.fairway;

import java.util.Arrays;
import java.util.List;

public class S3Permission {
	private S3Operation operation;
	private List<String> objectKeys;
	
	public S3Permission(S3Operation operation, String... objectKeys) {
		this.operation = operation;
		this.objectKeys = Arrays.asList(objectKeys);
	}
	
	public void addObjectKey(String objectKey) {
		objectKeys.add(objectKey);
	}
	
	public void clearObjectKeys() {
		objectKeys.clear();
	}
	
	public S3Operation getOperation() {
		return operation;
	}

	public void setOperation(S3Operation operation) {
		this.operation = operation;
	}

	public List<String> getObjectKeys() {
		return objectKeys;
	}

	public void setObjectKeys(List<String> objectKeys) {
		this.objectKeys = objectKeys;
	}
}
